package tio.server;

import org.tio.server.ServerGroupContext;
import org.tio.server.TioServer;

import java.io.IOException;

/**
 * @author tsinghua
 * @date 2018/6/20
 */
public class TIOServer {

    public static void main(String[] args) throws IOException {

        ServerGroupContext serverGroupContext = new ServerGroupContext("tio-server", new MServerAioHandler(), new MServerAioListener());

        TioServer server = new TioServer(serverGroupContext);

        TioServer tioServer = new TioServer(serverGroupContext);

        server.start("121.40.35.114", 9092);
        System.out.println("server is up!");
    }

}
